package rendava;

import java.awt.FontMetrics;
/**
 * Contains rendering information for when tag <br> is active.
 * @author Ben Gomm
 *
 */



public class BR extends SimpleTag {

	public void renderInfo(Renderer renderer)
	{
		FontMetrics fm = renderer.getCanvas().getGraphics().getFontMetrics();
		int newY = renderer.getY() + fm.getHeight();   // get current font height.
		renderer.setY(newY);						   // start a new line.
		renderer.setX(0); //resets the new X
	}
	
	
	public String closeTag()
	{
		return "close";
	}

	
}
